package com.glory.brepda.entity;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

public class ToolBomLineEntity implements Serializable {

    private List<ResultBean> TOOLBOMLINELIST;

    public List<ResultBean> getTOOLBOMLINELIST() {
        return TOOLBOMLINELIST;
    }

    public void setTOOLBOMLINELIST(List<ResultBean> BOMINFOLIST) {
        this.TOOLBOMLINELIST = BOMINFOLIST;
    }

    public class ResultBean implements Serializable{
        @SerializedName("TOOLBOMRRN")
        private String TOOLBOMRRN;
        @SerializedName("SEQNO")
        private String SEQNO;
        @SerializedName("TOOLSPEC")
        private String TOOLSPEC;
        @SerializedName("STEPNAME")
        private String STEPNAME;
        @SerializedName("STEPVERSION")
        private String STEPVERSION;
        @SerializedName("MATERIALRRN")
        private String MATERIALRRN;
        @SerializedName("MATERIALNAME")
        private String MATERIALNAME;
        @SerializedName("MATERIALVERSION")
        private String MATERIALVERSION;
        @SerializedName("MATERIALDESC")
        private String MATERIALDESC;
        @SerializedName("TOOLLIFE")
        private String TOOLLIFE;
        @SerializedName("ISMAIN")
        private String ISMAIN;
        @SerializedName("ISCRITICAL")
        private String ISCRITICAL;
        @SerializedName("ISALTERNATE")
        private String ISALTERNATE;
        @SerializedName("NAME")
        private String NAME;
        @SerializedName("RESERVED1")
        private String RESERVED1;

        public String getTOOLBOMRRN() {
            return TOOLBOMRRN == null ? "" : TOOLBOMRRN;
        }

        public void setTOOLBOMRRN(String TOOLBOMRRN) {
            this.TOOLBOMRRN = TOOLBOMRRN;
        }

        public String getSEQNO() {
            return SEQNO == null ? "" : SEQNO;
        }

        public void setSEQNO(String SEQNO) {
            this.SEQNO = SEQNO;
        }

        public String getTOOLSPEC() {
            return TOOLSPEC == null ? "" : TOOLSPEC;
        }

        public void setTOOLSPEC(String TOOLSPEC) {
            this.TOOLSPEC = TOOLSPEC;
        }

        public String getSTEPNAME() {
            return STEPNAME == null ? "" : STEPNAME;
        }

        public void setSTEPNAME(String STEPNAME) {
            this.STEPNAME = STEPNAME;
        }

        public String getSTEPVERSION() {
            return STEPVERSION == null ? "" : STEPVERSION;
        }

        public void setSTEPVERSION(String STEPVERSION) {
            this.STEPVERSION = STEPVERSION;
        }

        public String getMATERIALRRN() {
            return MATERIALRRN == null ? "" : MATERIALRRN;
        }

        public void setMATERIALRRN(String MATERIALRRN) {
            this.MATERIALRRN = MATERIALRRN;
        }

        public String getMATERIALNAME() {
            return MATERIALNAME == null ? "" : MATERIALNAME;
        }

        public void setMATERIALNAME(String MATERIALNAME) {
            this.MATERIALNAME = MATERIALNAME;
        }

        public String getMATERIALVERSION() {
            return MATERIALVERSION == null ? "" : MATERIALVERSION;
        }

        public void setMATERIALVERSION(String MATERIALVERSION) {
            this.MATERIALVERSION = MATERIALVERSION;
        }

        public String getMATERIALDESC() {
            return MATERIALDESC == null ? "" : MATERIALDESC;
        }

        public void setMATERIALDESC(String MATERIALDESC) {
            this.MATERIALDESC = MATERIALDESC;
        }

        public String getTOOLLIFE() {
            return TOOLLIFE == null ? "" : TOOLLIFE;
        }

        public void setTOOLLIFE(String TOOLLIFE) {
            this.TOOLLIFE = TOOLLIFE;
        }

        public String getISMAIN() {
            return ISMAIN == null ? "" : ISMAIN;
        }

        public void setISMAIN(String ISMAIN) {
            this.ISMAIN = ISMAIN;
        }

        public String getISCRITICAL() {
            return ISCRITICAL == null ? "" : ISCRITICAL;
        }

        public void setISCRITICAL(String ISCRITICAL) {
            this.ISCRITICAL = ISCRITICAL;
        }

        public String getISALTERNATE() {
            return ISALTERNATE == null ? "" : ISALTERNATE;
        }

        public void setISALTERNATE(String ISALTERNATE) {
            this.ISALTERNATE = ISALTERNATE;
        }

        public String getNAME() {
            return NAME == null ? "" : NAME;
        }

        public void setNAME(String NAME) {
            this.NAME = NAME;
        }

        public String getRESERVED1() {
            return RESERVED1 == null ? "" : RESERVED1;
        }

        public void setRESERVED1(String RESERVED1) {
            this.RESERVED1 = RESERVED1;
        }

        @Override
        public int hashCode() {
            // 使用toolSpec的hashCode值作为对象的hashCode
            return TOOLSPEC.hashCode();
        }

        @Override
        public boolean equals(Object obj) {
            // 检查是否为同一个对象的引用
            if (this == obj) {
                return true;
            }
            // 检查传入的对象是否为null
            if (obj == null) {
                return false;
            }
            // 检查是否为同一个类的实例
            if (getClass() != obj.getClass()) {
                return false;
            }
            // 类型转换
            ToolBomLineEntity.ResultBean other = (ToolBomLineEntity.ResultBean) obj;
            // 检查toolSpec属性是否相等
            return this.TOOLSPEC.equals(other.TOOLSPEC);
        }
    }
}